# -*- coding: utf-8 -*-
# Author: xiantingDeng
# File: 13_多继承.py
# Time: 20:19

class Base(object):
    def __init__(self,name):
        self.name = name
    def test(self):
        print("----Base%s"%self.name)

class A(Base):
    def __init__(self,name):
        super().__init__(name)
        self.name = name

    def test1(self):
        print("-----test1",end=self.name)

class B(Base):
    def __init__(self,name):
        super().__init__(name)
    def test2(self):
        print("-----test2",end=self.name)


class C(A,B):
    def __init__(self,name):
        super(C,self).__init__(name)





c = C("册数")
c.test1()
c.test2()
c.test()

print(C.mro()) # 调用这个方法搜索的顺序